<?php

namespace maotool\log;

class Console
{

    public static $lines = [];

    public static function log(...$ages)
    {
        static::$lines[] = [
            "type" => "log",
            "ages" => $ages,
        ];
    }

    public static function debug(...$ages)
    {
        static::$lines[] = [
            "type" => "debug",
            "ages" => $ages,
        ];
    }

    public static function info(...$ages)
    {
        static::$lines[] = [
            "type" => "info",
            "ages" => $ages,
        ];
    }

    public static function error(...$ages)
    {
        static::$lines[] = [
            "type" => "error",
            "ages" => $ages,
        ];
    }

    public static function warn(...$ages)
    {
        static::$lines[] = [
            "type" => "warn",
            "ages" => $ages,
        ];
    }

}